<script setup>
import { ref } from 'vue';



const showTransition = ref(false)
</script>

<template>
  <div>
    <button @click="showTransition = !showTransition">测试过渡</button>
    <transition name="fade">
      <div v-if="showTransition">
        123ascasd
      </div>
    </transition>
  </div>
</template>

<style></style>